var ws = require("nodejs-websocket")
function createTestConn() {
    var conn = ws.connect("ws://www.ytx166.com/live/092ec686-fce0-4067-bd61-e19f1debd332/13896540677/1313123");

    var sendData = {
        type: 0,
        sendToId: "092ec686-fce0-4067-bd61-e19f1debd332",
        msg: "12312",
        count: 1
    };


    conn.on("text", function (data) {
        console.log(data)
        var s = JSON.stringify(sendData)
        conn.send(s);
    })

}
for(var i = 0 ; i< 100;i++){
    createTestConn();
}
